package com.tyk.bookstore.back.product.model.vo;

import com.tyk.bookstore.back.common.core.util.FileUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tyk
 * @description 图片Vo
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ImageVo {
    @Schema(description = "ID")
    private Long id;
    @Schema(description = "路径")
    private String path;

    public ImageVo setPath(String path) {
        this.path = FileUtil.fullFilePath(path);
        return this;
    }
}
